package com.dletc.dao.Impl;

import com.dletc.dao.UsersDao;
import com.dletc.domain.Users;
import org.junit.Test;

public class UsersTest {
    UsersDao usersDao = new UsersDaoImpl();
    @Test
    public void InsertTest(){

        Users users = new Users("smit","123457",0);
        usersDao.inserUser(users);
    }

    @Test
    public void SelectByUserName(){
        Users users = usersDao.SelectByUserName("tom");
        System.out.println(users);
    }

    @Test
    public void SelectByID(){
        Users users = usersDao.SelectByID(0);
        System.out.println(users);
    }

    @Test
    public void SelectByNameAndPassword(){
        Users users = usersDao.SelectByNameAndPassword("tom","12345");
        System.out.println(users);
    }

}
